package PCLockRefine;

import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

public class Main {

    public static void main(String[] args) {
        Lock lock = new ReentrantLock();
        Condition condition = lock.newCondition();

        PrintNumThread printNumThread = new PrintNumThread(lock, condition);
        PrintLetterThread printLetterThread = new PrintLetterThread(lock, condition);

        printNumThread.start();
        printLetterThread.start();
    }

}
